/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-09-02
 * Time:20:12
 */
public class Test {
    public static void main(String[] args) {
        MyRealLinkedList myRealLinkedList = new MyRealLinkedList();
//        myRealLinkedList.addFirst(1);
//        myRealLinkedList.addFirst(2);
//        myRealLinkedList.addFirst(3);
//        myRealLinkedList.addFirst(4);
        myRealLinkedList.addLast(1);
        myRealLinkedList.addLast(2);
        myRealLinkedList.addLast(3);
        myRealLinkedList.addLast(4);
        myRealLinkedList.addIndex(0,0);
        myRealLinkedList.addIndex(6,-1);
        myRealLinkedList.addIndex(5,5);
        myRealLinkedList.addIndex(2,99);
        myRealLinkedList.display();
        myRealLinkedList.clear();
        myRealLinkedList.display();
    }
}
